# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-overpy
_pkgorig=overpy
pkgver=0.6
pkgrel=0
pkgdesc="Python Wrapper to access the Overpass API "
url="https://github.com/DinoTools/python-overpy"
arch="noarch"
license="MIT"
depends="python3"
# hotpatch for riscv to have all depends
# checkdepends="python3-dev py3-pytest py3-pytest-runner"
makedepends="python3-dev py3-pytest py3-pytest-runner py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/o/overpy/overpy-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="
b077c9f14473ea9ca8a8b10cad2108e62716a1e42f9072aecd83ae362aba41fcb781483f50b4a953824800b7bec5fa08fe362a1076924216d55979419bade1ff  py3-overpy-0.6.tar.gz
"
